package domain

import (
	"apitestAfterGo/common"
	"time"
)

type UserDetails struct {
	Id         int               `json:"id"`
	NickName   string            `json:"nick_name"`
	UserId     int               `json:"user_id"`
	UserSex    string            `json:"user_sex"`
	UserTel    string            `json:"user_tel"`
	UserDetail string            `json:"user_detail"`
	UserBirth  *common.LocalTime `json:"user_birth"`
	CreateBy   string            `json:"create_by"`
	CreateTime time.Time         `json:"create_time"`
	UpdateBy   string            `json:"update_by"`
	UpdateTime time.Time         `json:"update_time"`
	IsDelete   int               `json:"is_delete" gm:"logic"`
}

type UserDetailsMapper struct {
	InsertByUserDetail func(id int) error `args:"id"`
	UpdateByUserInfo   func(user UserDetails) error
}
